package com.gusha.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;

import com.gusha.model.InfoContent;
import com.gusha.model.SysRole;


/**
 * @Created：2018-10-30 14:25:23
 * @Author LightSound的代码生成器
 * @Description:InfoContentDao接口
 */
@Repository
public interface InfoContentDao extends JpaRepository<InfoContent,BigInteger>,JpaSpecificationExecutor<InfoContent> {
	
	@Query(value="select rm from InfoContent rm order by rm.clickNum desc")
	public List<InfoContent> fingAllByClickNum(String str);
	@Query(value="select rm from InfoContent rm where id=?1")
	public InfoContent findAllById(BigInteger id);
}
